package com.chixing.day07_adstract.Interfaces1.f1;

public class Cpu {
    public boolean getName;
    private int cpuNo;
    private String cpuModel;
    private String cpuFactory;

    //无参构造函数
//    public Cpu(){
//
//
//    }
    //有参构造函数
    public Cpu(int no,String model,String factory){
        System.out.println("编号: " + no + " 型号: " + model + " 厂家:" +factory );

    }



    public int getCpuNo() {
        return cpuNo;
    }

    public void setCpuNo(int cpuNo) {
        this.cpuNo = cpuNo;
    }

    public String getCpuModel() {
        return cpuModel;
    }

    public void setCpuModel(String cpuModel) {
        this.cpuModel = cpuModel;
    }

    public String getCpuFactory() {
        return cpuFactory;
    }

    public void setCpuFactory(String cpuFactory) {
        this.cpuFactory = cpuFactory;
    }

    public void run() {
    }
}
